package com.example.an.intentboadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Created by an on 2017/9/15.
 */
public class OtherActivity extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        //从Intent当中根据key取得value
        String value=intent.getStringExtra("test");
        Log.e("IntentReceive->Test",value);
    }
}
